package com.zsx.shopping.ware.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 商品库存
 * @TableName wms_ware_sku_stock
 */
@TableName(value ="wms_ware_sku_stock")
@Data
public class WareSkuStock implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 仓库ID
     */
    private Long wareId;

    /**
     * 商品ID
     */
    private Long skuId;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 锁定库存
     */
    private Integer stockLocked;

    /**
     * 销量
     */
    private Integer sales;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}